package com.booksystem.campuslibrarymanagementsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.booksystem.campuslibrarymanagementsystem.entity.BorrowingRulesTable;
import com.booksystem.campuslibrarymanagementsystem.mapper.BorrowingRulesTableMapper;
import com.booksystem.campuslibrarymanagementsystem.service.BorrowingRulesTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BorrowingRulesTableServiceImpl extends ServiceImpl<BorrowingRulesTableMapper, BorrowingRulesTable> implements BorrowingRulesTableService {
    @Autowired
    BorrowingRulesTableMapper borrowingRulesTableMapper;


    @Override
    public boolean upDataRules(int ruleid, int maxborrowedbooks, int borrowduration, int renewallimit, String updatetime) {
        return borrowingRulesTableMapper.upDataRules(ruleid,maxborrowedbooks,borrowduration,renewallimit,updatetime);
    }
}

